package com.wbb.api;

import com.wbb.model.TbAdmin;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dongdong-admin-service")
public interface AdminAPI {

    @PostMapping("/admin/queryByUsername")
    public TbAdmin queryByUsername(@RequestParam String username);
}
